package com.qingdai.service.impl;

import com.qingdai.emuns.Shop;
import com.qingdai.mapper.ShopEsMapper;
import com.qingdai.mapper.ShopMapper;
import com.qingdai.service.ShopService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author LiuZiMing
 * @since 2024-01-26
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService {
    @Resource
    private ShopMapper shopMapper;

    @Resource
    private ShopEsMapper shopEsMapper;


    @Override
    public Iterable<Shop> saveShops(List<Shop> allShops) {
        return shopEsMapper.saveAll(allShops);
    }
}
